package com.desehou.fristspring.service.impl;

import com.desehou.fristspring.dao.GoodsMapper;
import com.desehou.fristspring.model.Spu;
import com.desehou.fristspring.service.GoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service("goodsServiceImpl")
public class GoodsServiceImpl implements GoodsService
{

    @Resource
    private GoodsMapper goodsMapper;

    @Override
    public ArrayList<Spu> goods() {
        return goodsMapper.goods();
    }


    @Override
    public Boolean deleteGoodsById(String spuSN) {
        return goodsMapper.deleteGoodsById(spuSN);
    }
}
